﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="OAclient.Common" %>
<div id="notifyPrelist">
    <table>
        <tr>
            <th>
                标题
            </th>
            <th>
                描述
            </th>
        </tr>
        <%var notyList = ViewData["notify_list"] as System.Data.DataTable;
          Int32 count = notyList.Rows.Count;
          for (var notyIndex = 0; notyIndex < count; notyIndex++)
          { 
        %>
        <tr>
            <td>
                <%=notyList.Rows[notyIndex]["标题"]%>
            </td>
            <td>
                <%=notyList.Rows[notyIndex]["描述"]%>
            </td>
        </tr>
        <%} %>
    </table>
</div>
<div id="pageLink">
    <%var pageInfo = ViewData["pageInfo"] as PagingInfo;%>
    <%if (pageInfo != null)
      { %>
    <%=Ajax.PageLinks(pageInfo, index => Url.Action("NotifyPreList", new { page = index }), new AjaxOptions { UpdateTargetId = "notifyPrelist" })%>
    <%} %>
</div>
